package net.uman.web.util;

import java.text.NumberFormat;

public class WebFormatUtils {
	public static String priceFormat(Double price) {
		NumberFormat nf = NumberFormat.getCurrencyInstance();
		String res = nf.format(price);
		return res;
	}
	
	public static String priceFormat(String price) {
		return priceFormat(Double.valueOf(price));
	}
	
	public static String doubleFormat(Object value) {
		if(value==null){
			return "";
		}
		return value.toString().replaceAll(",", "");
		 
	}
 
}
